
import {createStackNavigator} from 'react-navigation';
import Home from "./main/Home";
import Welcome from "./main/Welcome";
import CS from "./common/CS";
import {Dimensions} from "react-native";
import AddFile from "./main/AddFile";
import Reader from "./main/Reader";
import WidgetUtils from "./common/WidgetUtils";

const {width: sw, height: sh,scale:ss} = Dimensions.get('window');
export default App = createStackNavigator({
    Home: {
        screen: Home,
    },
    Welcome: {
        screen: Welcome,
    },
    AddFile: {
        screen: AddFile,
    },
    Reader: {
        screen: Reader,
    }
}, {
    initialRouteName: 'Reader',
    navigationOptions: ({
        headerStyle: {
            backgroundColor: CS.green,
            paddingTop: WidgetUtils.headerPaddingTop,
            height:WidgetUtils.headerHeight,
        },
        headerTitleStyle: {
            color: '#ffffff',
            fontSize: 18,
            fontWeight:'normal',
            flex: 1,
            textAlign: 'center',
            justifyContent:'center',
            alignItems:'center',
            alignSelf: 'center',
        },
        headerTintColor: 'white',

    }),
    mode: 'card',
    headerMode: 'float',
    gesturesEnabled:true,

})

